<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport"
	content="user-scalable=no,minimum-scale=1,maximum-scale=1 width=device-width" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="description" content="">
<meta name="author" content="">

<title>手机APP下载</title>
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="plug-in/tools/curdtools_zh-cn.js"></script>

</head>

<body>
	<center>
		<h3 id="tips">页面跳转中，请稍后……</h3>
	</center>
	<script type="text/javascript">  
		var browser = {
		    versions: function() {
		        var u = navigator.userAgent,
		            app = navigator.appVersion;
		        return { //移动终端浏览器版本信息  
		            ios: !! u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端  
		            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器  
		            iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器  
		            iPad: u.indexOf('iPad') > -1 //是否iPad  
		        };
		    }()
		};
		if (browser.versions.iPhone || browser.versions.iPad || browser.versions.ios) {
			$("#tips").html('请点击右上角的<span style="color:red">在Safari中打开</span>进行下载。');
			var address = "itms-services://?action=download-manifest&url=https%3A%2F%2Fwww.pgyer.com%2Fapiv1%2Fapp%2Fplist%3FaId%3Dbf5b8b7009e685c612114b96aead6b2a%26_api_key%3D5d9ed3fd021c1965aed371458bc92045";
			//var address = "itms-services://?action=download-manifest&url=https://wxcs.cfg-barco.com:9443/CBS/fileUploadController.do?downLoadFile&fileLogId=456456";
			window.location.href = address;
		}else if(browser.versions.android){
			var address = "cbsInstallPackageController.do?downloadPackage&fileType=<%=StaticValue.DIC_FILE_TYPE_ANDROID%>";
			$("#tips").html('请点击右上角的<span style="color:red">在浏览器中打开</span>进行下载。');
			myDownload(address);
		}else{
			$("#tips").html('当前系统不能下载安装包');
		}
	</script>
</body>
</html>
